package com.l.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.l.entity.Recharge;

public interface RechargeDao {
	//添加数据
	@Insert("insert into recharge (userid,money,time,status,ordernumber,payment) " +
			"values(#{userid},#{money},now(),0,#{ordernumber},#{payment})")
	public boolean add(Recharge recharge);
	//修改状态
	@Update("update recharge set status=1 where ordernumber=#{ordernumber}")
	public boolean upStatus(String orderNumber);
	//回调
	@Select("select * from recharge where ordernumber=#{ordernumber}")
	public Recharge query(String orderNumber);
}
